package com.s3s.ssm.view.cashier;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.SwingConstants;
import org.jdesktop.swingx.JXLabel;
import org.jdesktop.swingx.JXLabel.TextAlignment;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import org.jdesktop.swingx.JXHyperlink;
import javax.swing.border.TitledBorder;

public class AreaPanel extends JPanel {

	/**
	 * Create the panel.
	 */
	public AreaPanel() {
		setBorder(null);
		setLayout(new BorderLayout(0, 0));

		JScrollPane scrollPane = new JScrollPane();
		add(scrollPane, BorderLayout.CENTER);

		JPanel panel = new JPanel();
		panel.setBorder(new TitledBorder(null, "Khu vuc, tang", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		scrollPane.setViewportView(panel);
		panel.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 10));
		
		JButton lblTang1 = new JButton();
		lblTang1.setContentAreaFilled(false);
		lblTang1.setVerticalTextPosition(SwingConstants.BOTTOM);
		lblTang1.setHorizontalTextPosition(SwingConstants.CENTER);
		lblTang1.setVerticalAlignment(SwingConstants.TOP);
		lblTang1.setText("Tang1");
		lblTang1.setIcon(new ImageIcon(AreaPanel.class.getResource("/images/area.png")));
		panel.add(lblTang1);

	}

}
